load("@rules_java//java:defs.bzl", "java_library")
load("//:testing.bzl", "junit4_test_suites")

package(default_applicable_licenses = [
    "//:license",
])

java_library(
    name = "tests",
    testonly = True,
    srcs = glob(["*Test.java"]),
    resources = ["//checker/src/test/resources:baselines"],
    deps = [
        #         "//java/com/google/testing/testsize:annotations",
        "//:auto_value",
        "//checker",
        "//checker:cel_ident_decl",
        "//checker:checker_builder",
        "//checker:checker_legacy_environment",
        "//checker:proto_expr_visitor",
        "//checker:proto_type_mask",
        "//checker:standard_decl",
        "//checker:type_inferencer",
        "//checker:type_provider_legacy_impl",
        "//common:cel_ast",
        "//common:cel_source",
        "//common:compiler_common",
        "//common:container",
        "//common:mutable_ast",
        "//common:options",
        "//common:proto_ast",
        "//common:source_location",
        "//common/ast",
        "//common/internal:env_visitor",
        "//common/internal:errors",
        "//common/resources/testdata/proto3:standalone_global_enum_java_proto",
        "//common/types",
        "//common/types:cel_proto_types",
        "//common/types:json",
        "//common/types:message_type_provider",
        "//common/types:type_providers",
        "//compiler",
        "//compiler:compiler_builder",
        "//parser:macro",
        "//parser:operator",
        "//testing:adorner",
        "//testing:cel_baseline_test_case",
        "@maven//:junit_junit",
        "@maven//:com_google_testparameterinjector_test_parameter_injector",
        "//:java_truth",
        "@maven//:com_google_truth_extensions_truth_proto_extension",
        "@cel_spec//proto/cel/expr:checked_java_proto",
        "@cel_spec//proto/cel/expr:syntax_java_proto",
        "@cel_spec//proto/cel/expr/conformance/proto2:test_all_types_java_proto",
        "@cel_spec//proto/cel/expr/conformance/proto3:test_all_types_java_proto",
        "@com_google_googleapis//google/rpc/context:attribute_context_java_proto",
        "@maven//:com_google_guava_guava",
        "@maven//:com_google_protobuf_protobuf_java",
    ],
)

junit4_test_suites(
    name = "test_suites",
    sizes = [
        "small",
        "medium",
    ],
    src_dir = "src/test/java",
    deps = [":tests"],
)
